home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
JPEG.ifx
< prev
next >
Wrap
Text File
|
1996-03-02
|
760b
|
46 lines
/*
* $VER: JPEG 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Convert a series of 24-bit images to JPEG files.
*
*/
OPTIONS RESULTS
RequestFile '"Input Basename..."'
IF rc ~= 0 THEN EXIT
input = result
RequestFile '"Output Basename..."'
IF rc ~= 0 THEN EXIT
output = result
RequestNumber '"Compression Quality..."' 25 100 75
IF rc ~= 0 THEN EXIT
quality = result
DO i = 1 TO 25
num = RIGHT(i,3,'0')
Message 'Frame' num
LoadBuffer input||num
IF rc ~= 0 THEN LEAVE
SaveBufferAs JPEG output||num quality
END
/*
* Optionally archive the results and delete.
*
* ADDRESS COMMAND 'lha a ram:JP' output||'#?'
* ADDRESS COMMAND 'c:delete' output||'#?'
*
*/
EXIT